<?php



class Dat_infanteMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.Dat_infanteMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('dat_infante');
		$tMap->setPhpName('Dat_infante');

		$tMap->setUseIdGenerator(true);

		$tMap->setPrimaryKeyMethodInfo('dat_infante_SEQ');

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('NUMHISTORIA', 'Numhistoria', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addForeignKey('COD_FAMILIA', 'CodFamilia', 'int', CreoleTypes::INTEGER, 'persona', 'COD_FAM', true, null);

		$tMap->addColumn('NOMBRE', 'Nombre', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('APELLIDO', 'Apellido', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('SEXO', 'Sexo', 'string', CreoleTypes::VARCHAR, false, 10);

		$tMap->addColumn('EDAD', 'Edad', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PESO', 'Peso', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('ALTURA', 'Altura', 'int', CreoleTypes::INTEGER, false, null);

	} 
} 